<?php

/**
 * Video form.
 *
 * @package    sf_sandbox
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class VideoForm extends BaseVideoForm
{
  public function configure()
  {
  	unset ($this['updated_at']);
  	$this->setWidget('strtags', new sfWidgetFormInputText());
  	$this->setWidget('cats', new sfWidgetFormInputText());
  	
  	$this->setValidator('strtags', new sfValidatorString()); 
  	$this->setValidator('cats', new sfValidatorString()); 
  }
  
  public function save($con = null) {
    $obj = $this->getObject();
    $obj->setTags($this->getValue('strtags'));
    $obj->setCategories( $this->getValue('cats'));
    return parent::save($con);

  }
}
